import 'package:flutter/widgets.dart';
import 'package:video_compress/video_compress.dart';
class Compress extends State<StatefulWidget>{
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    throw UnimplementedError();
  }
}
class _Compress extends State<Compress> {
  @override
  Widget build(BuildContext context) {
    // 实现build方法，返回要构建的widget
    return Container(
      child: Text('Your Compress Widget'),
    );
  }
}



// class _Compress extends State<Compress> {
//
//   late Subscription _subscription;
//
//   @override
//   void initState() {
//     super.initState();
//     _subscription =
//         VideoCompress.compressProgress$.subscribe((progress) {
//           debugPrint('progress: $progress');
//         });
//   }
//
//   @override
//   void dispose() {
//     super.dispose();
//     _subscription.unsubscribe();
//   }
// }